import os


def get_project_path() -> str:
    """
    获取项目目录
    :return:
    """
    this_path = os.path.realpath(__file__)
    module_path = os.path.dirname(this_path)
    return os.path.dirname(module_path)


def get_config_path() -> str:
    """
    返回config path
    :return:
    """
    this_path = os.path.realpath(__file__)
    module_path = os.path.dirname(this_path)
    project_path = os.path.dirname(module_path)
    config_path = project_path + os.sep + "config"
    return config_path


def get_security_path() -> str:
    """
    返回security.key path
    :return:
    """
    this_path = os.path.realpath(__file__)
    module_path = os.path.dirname(this_path)
    project_path = os.path.dirname(module_path)

    return project_path + os.sep + "config" + os.sep + "security.key"


def get_share_path() -> str:
    """
    返回share.key path
    :return:
    """
    this_path = os.path.realpath(__file__)
    module_path = os.path.dirname(this_path)
    project_path = os.path.dirname(module_path)
    return project_path + os.sep + "config" + os.sep + "share.key"


def get_warns_path() -> str:
    this_path = os.path.realpath(__file__)
    module_path = os.path.dirname(this_path)
    project_path = os.path.dirname(module_path)
    return project_path + os.sep + "warns" + os.sep + "init.bin"
